package com.big.patient.controller;

import com.big.common.result.Result;
import com.big.model.model.patient.PatientDsn;
import com.big.patient.service.PatientDsnService;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 加密控制器
 */
@Slf4j
@RestController
@RequestMapping("/api/patient/dns")
public class PatientDsnController {

    @Autowired
    private PatientDsnService patientDsnService;

    //查找用户密
    @ApiModelProperty(value = "查找用户密")
    @GetMapping("/findInfoDns/{phone}")
    public PatientDsn findInfoDns(@PathVariable("phone") String phone){
        return  patientDsnService.findInfoDns(phone);
    }

    //查找管理密
    @ApiModelProperty(value = "查找用户密")
    @GetMapping("/findAdminInfoDns/{uid}")
    public PatientDsn findAdminInfoDns(@PathVariable("uid") String uid){
        return  patientDsnService.findAdminDnsInfo(uid);
    }

}
